﻿using System.Collections.Generic;
using Newtonsoft.Json;

namespace ZYing.LiquidThemeEngine.Config.Values;

public class ThemeSetting
{
    [JsonProperty("settings")] public Dictionary<string, object> Settings { get; set; }

    [JsonProperty("sections")] public SortedDictionary<string, ThemeSectionSetting> Sections { get; set; }

    [JsonProperty("content_for_index")] public List<string> ContentForIndex { get; set; }

    public static ThemeSetting Parse(string value)
    {
        return JsonConvert.DeserializeObject<ThemeSetting>(value);
    }
}